<template name="ionTab">
  <a class="{{classes}} {{isActive}}" href="{{url}}" data-ion-tab>
    {{#if defaultIcon}}
      {{#if isActive}}
        {{> ionIcon icon=activeIcon}}
      {{else}}
        {{> ionIcon icon=defaultIcon}}
      {{/if}}
    {{/if}}

    {{title}}

    {{#if badgeNumber}}
      <div class="badge badge-{{badgeColor}}">
        {{badgeNumber}}
      </div>
    {{/if}}
  </a>
</template>
